package com.atgm.mall.gmmailproduct.service;

import com.atgm.mall.gmmailproduct.entity.AttrEntity;
import com.atgm.mall.gmmailproduct.vo.AttrGroupRelationVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atgm.common.utils.PageUtils;
import com.atgm.mall.gmmailproduct.entity.AttrAttrgroupRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author pdx
 * @email 945097967@qq.com
 * @date 2021-08-20 09:07:21
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveBatch(List<AttrGroupRelationVo> attrGroupRelationVos);

    List<AttrEntity> queryAttrInfo(Long attrGroupId);

    /**
     * 添加分组、配置参数关联信息
     * @param attrIds
     * @param attrGroupId
     */
    void addAttrAttrGroupRela(List<Long> attrIds, Long attrGroupId);
}

